package cn.pzhu.pserson.dto;

import cn.pzhu.pserson.util.BeanUtil;
import cn.pzhu.pserson.model.Code;
import java.io.Serializable;


public class CodeDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private Integer code;
        
        public Integer getCode() {
            return this.code;
        }
        
        public void setCode(Integer code) {
            this.code = code;
        }
        
        public Code toModel() {
            Code model = new Code();
			BeanUtil.convert(this, model);
			return model;
        }
    
}